function [TrainingAccuracy, TestingAccuracy] = calAccuracy_analysis(T, Y, Test_T, Y_test)
    MissClassificationRate_Training=0;
    MissClassificationRate_Testing=0;
    for i = 1 : size(T, 2)
        [x, label_index_expected]=max(T(:,i));
        [x, label_index_actual]=max(Y(:,i));
        if label_index_actual~=label_index_expected
            MissClassificationRate_Training=MissClassificationRate_Training+1;
        end
    end
    TrainingAccuracy=1-MissClassificationRate_Training/size(T,2);
    for i = 1 : size(Test_T, 2)
        [x, label_index_expected]=max(Test_T(:,i));
        [x, label_index_actual]=max(Y_test(:,i));
        if label_index_actual~=label_index_expected
            MissClassificationRate_Testing=MissClassificationRate_Testing+1;
        end
    end
    TestingAccuracy=1-MissClassificationRate_Testing/size(Test_T,2);
end
